from django.shortcuts import HttpResponse
import json


def test(request):
    response = {'code': 0, 'msg': 'success'}
    return HttpResponse(json.dumps(response))


def profile(request):
    response = {'code': 0, 'msg': 'success', 'name': 'a django project', 'date': '2021.11.18'}
    return HttpResponse(json.dumps(response))
    
